"""
获取时间分量
"""
from datetime import *
t = datetime.now()
print(t)
print(t.year)
print(t.month)
print(t.day)
print(t.hour)
print(t.minute)
print(t.second)